package com.vanvalt.payhui.modules.pay.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.CrudService;
import com.vanvalt.core.utils.SvrUtils;
import com.vanvalt.payhui.modules.pay.dao.BankCardDao;
import com.vanvalt.payhui.modules.pay.entity.BankCard;

/**
 * @author Xiaoyang
 *
 */
@Service
@Transactional(readOnly = true)
public class BankCardService extends CrudService<BankCardDao, BankCard> {

	@Autowired
	public BankCardDao bankCardDao;
	
	@Transactional(readOnly = false)
	public void save(BankCard bankCard) {
		
		SvrUtils.save(bankCard, bankCardDao);
	}
	
	public int findCount(Map<String,Object> map){
		
		int count = bankCardDao.findCount(map);
		return count;
	}
}
